/*
 * Copyright (C) 2008 Gurcar Development Team
 * 
 * This file is part of Gurcar.
 *
 *  Gurcar is free software: you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation, either version 3 of the License, or
 *  (at your option) any later version.
 * 
 *  Gurcar is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 * 
 *  You should have received a copy of the GNU General Public License
 *  along with Gurcar.  If not, see <http://www.gnu.org/licenses/>.
*/

using System;
using System.Collections.Generic;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.Graphics;

namespace gurcar
{
    class Text
    {
        SpriteFont Font;
        Vector2 FontPos = new Vector2(0,0);
        String Output = "";

        public void LoadContent(ContentManager theContentManager)
        {
            Font = theContentManager.Load<SpriteFont>("Font");
        }

        public void Update(String text, Vector2 Pos)
        {
            Output = text;
            FontPos = Pos;
        }
         
        public void Draw(SpriteBatch theSpriteBatch)
        {
            theSpriteBatch.DrawString(Font, Output, FontPos, Color.LightGreen,
                0, new Vector2(0,0), 1.0f, SpriteEffects.None, 0.5f);
        }
        
            
    }
}
